package com.blb.ioc;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * AMD的cpu
 */
@Qualifier("amd") //对对象进行标记
@Component
public class AMDCpu implements Cpu{

    @Override
    public void run() {
        System.out.println("AMD的cpu正在运行...");
    }
}
